import 'package:flutter_web_2021/router/AppRouter.dart';

import '../../../Include.dart';

//https://juejin.cn/post/6844903656936964103
//https://api.flutter.dev/flutter/widgets/WidgetsApp-class.html
class WidgetsAppPage extends BasePage {
  static String dartPath = "lib/pages/component/material_design/WidgetsAppPage.dart";

  @override
  _WidgetsAppPageState createState() => _WidgetsAppPageState();

  @override
  String get pageName => 'WidgetsApp未改装的MaterialApp';
}

class _WidgetsAppPageState extends BasePageState<WidgetsAppPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: MyAppBar.appBar(context, widget.pageName),
      body: Container(
        child: Text("没搞明白"),
      ),
    );
    //   WidgetsApp(
    //     debugShowWidgetInspector: true,
    //     initialRoute: "/home",
    //     onGenerateRoute: onGenerateRoute,
    //     inspectorSelectButtonBuilder: (BuildContext context, VoidCallback onPressed) {
    //       return new FloatingActionButton(
    //         child: const Icon(Icons.search),
    //         onPressed: onPressed,
    //         mini: true,
    //       );
    //     },
    //     color: Colours.bg_while,
    //     home: Scaffold(
    //       appBar: MyAppBar.appBar(context, widget.pageName),
    //       body: Container(),
    //     ),
    // );
  }
}
